package com.slimbloody.log.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import protobuf.TT;

import java.nio.charset.StandardCharsets;

@Slf4j
@RestController
@RequestMapping("/log")
public class LogController {

  @PostMapping("/log")
  public void log() {
    String str = "abc";
    TT.SubTest.Builder builder = TT.SubTest.newBuilder();
    builder.setI32(10);
    TT.SubTest subTest = builder.build();
    log.info("{}", subTest);
  }
}
